package com.mm.ai.dto.coze;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * url: https://www.coze.cn/docs/developer_guides/create_knowledge_files
 *
 * @Author：tangnaichao
 * @Date：2024/10/18 19:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateknowledgeRspDTO extends CozeBaseRspDTO {
    /**
     * 已上传文件的基本信息
     */
    @JsonProperty("document_infos")
    private List<DocumentInfo> documentInfos;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class DocumentInfo {

        @JsonProperty("char_count")
        private Integer charCount;

        @JsonProperty("chunk_strategy")
        private CreateknowledgeReqDTO.ChunkStrategy chunkStrategy;

        @JsonProperty("create_time")
        private Long createTime;

        @JsonProperty("document_id")
        private String documentId;

        @JsonProperty("format_type")
        private Integer formatType;

        @JsonProperty("hit_count")
        private Integer hitCount;

        @JsonProperty("name")
        private String name;

        @JsonProperty("size")
        private Long size;

        @JsonProperty("slice_count")
        private Integer sliceCount;

        @JsonProperty("source_type")
        private Integer sourceType;

        @JsonProperty("status")
        private Integer status;

        @JsonProperty("type")
        private String type;

        @JsonProperty("update_interval")
        private Integer updateInterval;

        @JsonProperty("update_time")
        private Long updateTime;

        @JsonProperty("update_type")
        private Integer updateType;
    }
}
